package com.itliuhouse.success.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itliuhouse.success.domain.dto.PageDTO;
import com.itliuhouse.success.domain.query.UserQuery;
import com.itliuhouse.success.domain.vo.UserVO;
import com.itliuhouse.success.pojo.User;

import java.util.List;

public interface UserService extends IService<User> {
    void deductBalance(Long id, Integer money);

    UserVO queryUserAndAddressById(Integer id);

    List<UserVO> queryUserAndAddressByIds(List<Long> ids);

    PageDTO<UserVO> queryUsersPage(UserQuery query);

    PageDTO<UserVO> queryUsersByPage(UserQuery query);
    //扩展自定义的方法
}
